<?php
/**
 * SocialEngine
 *
 * @category   Application_Core
 * @package    Core
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.com/license/
 * @version    $Id: index.tpl 9747 2012-07-26 02:08:08Z john $
 * @author     John
 */
?>

<?php
  echo $this->navigation()
    ->menu()
    ->setContainer($this->navigation)
    ->setPartial(null)
    ->setUlClass('navigation')
    ->render();
?>
<?php if($this->search_check):?>
  <script type="text/javascript" >
    var search = new Element("li");
    search.set("id", "global_search_form_container");
    search.innerHTML = '<form id="global_search_form" action="<?php echo $this->url(array('controller' => 'search'), 'default', true) ?>" method="get"><input type="text" class="text suggested" name="query" id="global_search_field" size="20" maxlength="100" alt="<?php echo $this->translate('Search') ?>" /></form>';
    search.inject($$('.layout_core_menu_main ul')[0], 'bottom');
  </script>
<?php endif;?>
